package com.examplemartin.jpademo.dao;

import com.examplemartin.jpademo.pojo.po.repository.sell.SellOutPO;
import com.examplemartin.jpademo.pojo.po.sell.SellPO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SellOutDao extends JpaRepository<SellOutPO,Long>, JpaSpecificationExecutor<SellOutPO> {
    List<SellOutPO> findAllBySellPOAndStatus(SellPO sellPO, Integer sellStatusFinish);

    /*@Query("select t1 from com.example.jpademo.pojo.po.repository.purchase.PurInPO as t1 ")
    List<Object> sumInStock(Long id);

    // 查询已入库明细数量 -- 采购单id
    List<PurInPO> findAllByPurPOAndStatus(PurPO purpo,Integer purinstatus);*/


}
